#!/bin/sh
cd `dirname $0`
url=$1
echo url:${url}
code=`curl -I -m 5 -o /dev/null -s -w %{http_code}  ${url}`
echo http_code:${code}
if [ $# -le 2 ]
then
   exit ${code}
fi

eval  "if [ $code $2 ]; then echo 0; else echo 1; fi"

